package pl.edu.uj.ii.battleships.utils;

import android.util.Log;

public class Logger {

	private static Logger instance;
	private static String TAG = "Battleships";
	
	public static Logger getInstance() {
		if(instance == null)
			instance = new Logger();
		TAG = "Battleships";
		return instance;
	}

	public static Logger getInstance(String tag) {
		if(instance == null)
			instance = new Logger();
		TAG = tag;
		return instance;
	}
	
	public static void debug(String message) {
		Log.d(TAG, "[DEBUG] : " + message);
	}
	
	public static void error(String message) {
		Log.e(TAG, "[ERROR] : " + message);
	}
	
	public static void error(String message, Throwable t) {
		Log.e(TAG, "[ERROR] : " + message, t);
	}
}
